package com.ruoyi.books.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.books.mapper.BooksVocalCavityMapper;
import com.ruoyi.books.domain.BooksVocalCavity;
import com.ruoyi.books.service.IBooksVocalCavityService;

/**
 * 非遗唱腔汇总Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-03-30
 */
@Service
public class BooksVocalCavityServiceImpl implements IBooksVocalCavityService 
{
    @Autowired
    private BooksVocalCavityMapper booksVocalCavityMapper;

    /**
     * 查询非遗唱腔汇总
     * 
     * @param vocalCavityId 非遗唱腔汇总主键
     * @return 非遗唱腔汇总
     */
    @Override
    public BooksVocalCavity selectBooksVocalCavityByVocalCavityId(Long vocalCavityId)
    {
        return booksVocalCavityMapper.selectBooksVocalCavityByVocalCavityId(vocalCavityId);
    }

    /**
     * 查询非遗唱腔汇总列表
     * 
     * @param booksVocalCavity 非遗唱腔汇总
     * @return 非遗唱腔汇总
     */
    @Override
    public List<BooksVocalCavity> selectBooksVocalCavityList(BooksVocalCavity booksVocalCavity)
    {
        return booksVocalCavityMapper.selectBooksVocalCavityList(booksVocalCavity);
    }

    /**
     * 新增非遗唱腔汇总
     * 
     * @param booksVocalCavity 非遗唱腔汇总
     * @return 结果
     */
    @Override
    public int insertBooksVocalCavity(BooksVocalCavity booksVocalCavity)
    {
        return booksVocalCavityMapper.insertBooksVocalCavity(booksVocalCavity);
    }

    /**
     * 修改非遗唱腔汇总
     * 
     * @param booksVocalCavity 非遗唱腔汇总
     * @return 结果
     */
    @Override
    public int updateBooksVocalCavity(BooksVocalCavity booksVocalCavity)
    {
        return booksVocalCavityMapper.updateBooksVocalCavity(booksVocalCavity);
    }

    /**
     * 批量删除非遗唱腔汇总
     * 
     * @param vocalCavityIds 需要删除的非遗唱腔汇总主键
     * @return 结果
     */
    @Override
    public int deleteBooksVocalCavityByVocalCavityIds(Long[] vocalCavityIds)
    {
        return booksVocalCavityMapper.deleteBooksVocalCavityByVocalCavityIds(vocalCavityIds);
    }

    /**
     * 删除非遗唱腔汇总信息
     * 
     * @param vocalCavityId 非遗唱腔汇总主键
     * @return 结果
     */
    @Override
    public int deleteBooksVocalCavityByVocalCavityId(Long vocalCavityId)
    {
        return booksVocalCavityMapper.deleteBooksVocalCavityByVocalCavityId(vocalCavityId);
    }
}
